import http from "../../utils/http"

const unitMeasure = {
    // 获取计量单位列表
    getUnitMeasureList: (data) => http.get('/measure_unit/list', data),
    // 新增计量单位
    addUnitMeasure: (data) => http.post('/measure_unit/add', data),
    // 编辑计量单位
    editUnitMeasure: (data) => http.put('/measure_unit/edit', data),
    // 删除计量单位（支持单个和批量删除）
    deleteUnitMeasure: (ids) => http.delete('/measure_unit/delete', { ids }),

}

export default unitMeasure;